package cn.wusifx.zabbix.request.builder.map;

import cn.wusifx.zabbix.request.BaseRequest;
import cn.wusifx.zabbix.request.builder.UpdateRequestBuilder;

import java.util.Map;

/**
 * https://www.zabbix.com/documentation/4.0/manual/api/reference/map/update
 */
public class MapUpdateRequestBuilder extends UpdateRequestBuilder {
    private String sysMapId;
    public MapUpdateRequestBuilder(String auth) {
        super("map.update", auth);
    }

    public MapUpdateRequestBuilder(Long id, String auth) {
        super("map.update", id, auth);
    }

    public String getSysMapId() {
        return sysMapId;
    }

    public MapUpdateRequestBuilder setSysMapId(String sysMapId) {
        this.sysMapId = sysMapId;
        return this;
    }

    @Override
    public BaseRequest<Map<String, Object>> builder() {
        baseRequest.getParams().put("sysmapid",sysMapId);
        return baseRequest;
    }
}
